
class excep {

public void exceptionn() 
{
	System.out.println("before Divide by zero error");
	try {
		
	int i = 1/0;
	}
catch(ArithmeticException ex) {
		System.out.println("The no cannot be divided by 0");
	
	}
System.out.println("after division by zero");
}
}

class Test {
	public static void main(String[] args)
	{
		
	excep e = new excep();
	e.exceptionn();
}
}
